package cn.wubo.beetsql.entity;

import lombok.Data;
import org.beetl.sql.core.annotatoin.*;

import java.sql.Date;

@Data
@TableTemplate("order by id desc ")//排序
@Table(name="demo_table")//映射表名
public class DemoTableTem {
    private Integer id;
    private String name;
    private String message;
    @Version//版本，会在更新时自动加1
    private Integer version;
    @DateTemplate(accept="minDate,maxDate",compare=">=,<=")
    private Date time;

    private Date minDate;
    private Date maxDate;
}
